package sy.po;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.One;
import org.nutz.dao.entity.annotation.Table;

/**
 * 
 * @author 孙宇
 *
 */
@Table("t_methodlog")
@Comment("方法日志表")
public class MethodLog extends BaseModel {

	@Column
	@Comment("方法英文名称")
	@ColDefine(notNull = true, width = 100)
	private String engName;

	@Column
	@Comment("方法中文名称")
	@ColDefine(width = 100)
	private String name;

	@Column
	@Comment("具体的方法名称")
	@ColDefine(notNull = true, width = 200)
	private String fullName;

	@Column
	@Comment("日志")
	@ColDefine(type = ColType.TEXT)
	private String log;

	@Column
	@Comment("操作人")
	@ColDefine(type = ColType.VARCHAR, width = 100)
	private String userName;

	@Column
	@Comment("IP地址")
	@ColDefine(type = ColType.VARCHAR, width = 30)
	private String ip;

	// 一对一关联
	@Column
	@Comment("公司主键")
	private String companyId;
	@One(field = "companyId", target = Company.class)
	private Company company;// 公司对象

	public String getEngName() {
		return engName;
	}

	public void setEngName(String engName) {
		this.engName = engName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getLog() {
		return log;
	}

	public void setLog(String log) {
		this.log = log;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

}
